//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.lyq.bean;

public class Course {
    private String No;
    private String name;
    private String time;
    private String place;
    private String credit;
    private String teacher;
    private String LimitNum;
    private String ResidueNum;
    // 新增字段：课程类型（线上/线下）、校区（校区1/校区2）、学期和课程类别
    private String courseType;
    private String campus;
    private String semester;
    private String category;
    // 课程分类：专业必修课，专业选修课，公共必修课，公共选修课
    private String courseClassification;
    
    // 学生姓名（用于显示选课学生姓名）
    private String studentName;

    private int majorId;
    private int yearId;
    private String majorName;
    private String yearName;


    public Course() {
        // 设置默认值
        this.courseType = "线下";
        this.campus = "校区1";
        this.semester = "2025-2026秋季学期";
        this.category = "";
        this.courseClassification = "";
    }

    public String getLimitNum() {
        return this.LimitNum;
    }

    public void setLimitNum(String limitNum) {
        this.LimitNum = limitNum;
    }

    public String getResidueNum() {
        return this.ResidueNum;
    }

    public void setResidueNum(String residueNum) {
        this.ResidueNum = residueNum;
    }

    public String getName() {
        return this.name;
    }

    public String getNo() {
        return this.No;
    }

    public void setNo(String no) {
        this.No = no;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPlace() {
        return this.place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getCredit() {
        return this.credit;
    }

    public void setCredit(String credit) {
        this.credit = credit;
    }

    public String getTeacher() {
        return this.teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    // 新增字段的getter和setter方法
    public String getCourseType() {
        return courseType;
    }

    public void setCourseType(String courseType) {
        this.courseType = courseType;
    }

    public String getCampus() {
        return campus;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }
    
    public String getSemester() {
        return semester;
    }
    
    public void setSemester(String semester) {
        this.semester = semester;
    }
    
    public String getCategory() {
        return category;
    }
    
    public void setCategory(String category) {
        this.category = category;
    }
    
    public String getCourseClassification() {
        return courseClassification;
    }
    
    public void setCourseClassification(String courseClassification) {
        this.courseClassification = courseClassification;
    }
    
    // 学生姓名的getter和setter方法
    public String getStudentName() {
        return studentName;
    }
    
    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getSelectedTime() {
        return this.time;
    }

    public String toString() {
        return "Course [No=" + this.No + ", name=" + this.name + ", time=" + this.time + ", place=" + this.place + ", credit=" + this.credit + ", teacher=" + this.teacher + ", courseType=" + this.courseType + ", campus=" + this.campus + ", semester=" + this.semester + ", category=" + this.category + ", courseClassification=" + this.courseClassification + ", studentName=" + this.studentName + ", selectedTime=" + this.time + "]";
    }

    public int getMajorId() {
        return majorId;
    }

    public void setMajorId(int majorId) {
        this.majorId = majorId;
    }

    public int getYearId() {
        return yearId;
    }

    public void setYearId(int yearId) {
        this.yearId = yearId;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public String getYearName() {
        return yearName;
    }

    public void setYearName(String yearName) {
        this.yearName = yearName;
    }
}